package com.bidevalution.dao.mapper;

import com.bidevalution.dao.entity.TempBeEvalutionOutcome;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TempBeEvalutionOutcomeMapper {
    int deleteByPrimaryKey(String seqId);

    int insert(TempBeEvalutionOutcome record);

    int insertSelective(TempBeEvalutionOutcome record);

    TempBeEvalutionOutcome selectByPrimaryKey(String seqId);

    int updateByPrimaryKeySelective(TempBeEvalutionOutcome record);

    int updateByPrimaryKey(TempBeEvalutionOutcome record);

    /**
     * 复制重评软删除的数据到临时表
     *
     * @param sectionId
     * @param sectionStepId
     * @return
     */
    int copyOutcomeData(@Param("sectionId") String sectionId, @Param("sectionStepId") String sectionStepId);

    /**
     * 根据标段id和环节id查询数据
     *
     * @param sectionId
     * @param sectionStepId
     * @return
     */
    List<TempBeEvalutionOutcome> queryListById(@Param("sectionId") String sectionId, @Param("sectionStepId") String sectionStepId, @Param("expertId") String expertId);

    /**
     * 根据标段id和环节id删除数据
     *
     * @param sectionId
     * @param sectionStepId
     * @return
     */
    int deleteListById(@Param("sectionId") String sectionId, @Param("sectionStepId") String sectionStepId, @Param("expertId") String expertId);

    /**
     * 查询记录条数
     *
     * @param sectionId
     * @param sectionStepId
     * @return
     */
    int countById(@Param("sectionId") String sectionId, @Param("sectionStepId") String sectionStepId);
}